package com.cloxtec.scada.utils;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.cloxtec.scada.service.RealTimeData;
import com.cloxtec.scada.utils.ParamHelper;

import javax.annotation.Resource;
import java.util.TimerTask;

public class OnTimeTask extends TimerTask {

    @Resource
    private ParamHelper paramHelper;

    @Resource
    private RealTimeData realTimeData;

    private JSONObject task;

    public OnTimeTask(JSONObject jsonTask) {
        task = jsonTask;
    }

    @Override
    public void run() {// do something with task

    }
}
